#include "MyTimer.h"
#include <windows.h>

MyTimer::MyTimer(void)
{
	reset();
}


MyTimer::~MyTimer(void)
{
}

void MyTimer::reset()
{
	dwTimeLast = GetTickCount();
}

float MyTimer::getElapsedTimeInSeconds()
{
	DWORD dwTimeLastLast=dwTimeLast;
	dwTimeLast = GetTickCount();

	float returned=((float)( dwTimeLast - dwTimeLastLast )) / 1000.0f;
	return returned;
}